package com.yicong.ants.scenic.data

import com.google.gson.annotations.SerializedName

data class WeatherInfoItem(
    val week: Int,
    val daytemp: String,
    val nighttemp: String,
    val dayweather: String,
    @SerializedName("dayweather_img")
    val dayweatherImg: String
) {
    fun getWeekStr(): String {
        when (week) {
            1 -> {
                return "星期一"
            }

            2 -> {
                return "星期二"
            }

            3 -> {
                return "星期三"
            }

            4 -> {
                return "星期四"
            }

            5 -> {
                return "星期五"
            }

            6 -> {
                return "星期六"
            }

            7 -> {
                return "星期日"
            }
        }
        return ""
    }
}
